<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>两栏布局 左固定</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            font-size: 18px;
            min-width: 600px;
        }

        .container {
            width: 100%;
            overflow: hidden;
        }

        .left {
            width: 150px;
            height: 200px;
            /*实际开发中不要给出高度，高度由内容自行撑开*/
            float: left;
            background-color: pink;
            color: white;
            position: relative;
            margin-right: -150px;
        }

        .right {
            width: 100%;
            height: 200px;
            /*实际开发中不要给出高度，高度右内容自行撑开*/
            float: left;
            background-color: #87faf8;
            color: white;
            margin-left: 180px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="left">左侧固定</div>
        <div class="right">右侧自适应</div>
    </div>
</body>

</html>